﻿using System;
using System.Collections.Generic;
using System.Text;

using Microsoft.Scripting.Hosting.Shell;
using Microsoft.Scripting.Runtime;
using Microsoft.Scripting;

namespace DlrBasic
{
    /// <summary>
    /// Language command line support.
    /// </summary>
    public class DlrBasicCommandLine : CommandLine
    {
        protected override string Logo
        {
            get
            {
                return String.Format(Properties.Resources.DlrBasicConsoleHeader,
                    typeof(DlrBasicCommandLine).Assembly.GetName().Version.ToString(),
                    Environment.Version.ToString());
            } 
        }

        protected override Scope CreateScope()
        {
            DlrBasicModule module = ((DlrBasicLanguageContext)Language).CreateDlrBasicModule();
            return module.Scope;
        }

        protected override string Prompt
        {
            get { return Properties.Resources.DlrBasicConsolePrompt; }
        }
    }
}
